﻿using System;
using SharpTrainer.DP.Builder.Generic;
using Zeus.Thunder.Core;

namespace SharpTrainer.DesignPattern
{
    class BuilderGenTest : ITestCase
    {
        public void Run()
        {
            // Create director and builders 
            Director director = new Director(); 
            Builder b1 = new ConcreteBuilder1(); 
            Builder b2 = new ConcreteBuilder2(); 
            
            // Construct two products 
            director.Construct(b1);
            SharpTrainer.DP.Builder.Generic.Product p1 = b1.GetResult(); 
            p1.Show(); 

            director.Construct(b2);
            SharpTrainer.DP.Builder.Generic.Product p2 = b2.GetResult(); 
            p2.Show();
        }
    }
}
